import { IForm } from '@/base-ui/form/index'

export const searchFormConfig: IForm = {
  labelWidth: '120px',
  itemStyle: {
    padding: '10px 50px 10px 0px'
  },
  colLayout: {
    xl: 6,
    lg: 8,
    md: 12,
    // sm:24,
    xs: 24
  },
  formItems: [
    {
      field:'id',
      type:'input',
      label:'id',
      rules:[],
      placeholder:'请输入id'
    },
    {
      field:'name',
      type: 'input',
      label: '用户名',
      rules: [],
      placeholder: '请输入用户名'
    },
    {
      field:'realname',
      type: 'input',
      label: '真实姓名',
      rules: [],
      placeholder: '请输入查询的真实姓名'
    },
    {
      field:'cellphone',
      type: 'input',
      label: '电话号码',
      rules: [],
      placeholder: '请输入查询的电话号码'
    },
    {
      field:'enable',
      type: 'select',
      label: '用户状态',
      placeholder: '请选择用户状态',
      options: [
        { title: '启用', value: 1 },
        { title: '禁用', value: 0 },
      ]
    },
    {
      field:'createAt',
      type: 'datepicker',
      label: '创建时间',
      otherOptions: {
        startPlaceholder: '开始时间',
        endPlaceholder: '结束时间',
        type: 'daterange'
      }
    }
  ]
}